home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 2002 November / SGI Freeware 2002 November - Disc 2.iso / dist / fw_gimp.idb / usr / freeware / include / libgimp / gimplimits.h.z / gimplimits.h
Encoding:
C/C++ Source or Header  |  2002-07-08  |  1.5 KB  |  49 lines

  1. /* LIBGIMP - The GIMP Library
  2.  * Copyright (C) 1995-1999 Peter Mattis and Spencer Kimball
  3.  *
  4.  * gimplimits.h
  5.  * Copyright (C) 1999 Michael Natterer <mitschel@cs.tu-berlin.de>
  6.  *
  7.  * This library is free software; you can redistribute it and/or
  8.  * modify it under the terms of the GNU Lesser General Public
  9.  * License as published by the Free Software Foundation; either
  10.  * version 2 of the License, or (at your option) any later version.
  11.  *
  12.  * This library is distributed in the hope that it will be useful,
  13.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  15.  * Lesser General Public License for more details.
  16.  *
  17.  * You should have received a copy of the GNU Lesser General Public
  18.  * License along with this library; if not, write to the
  19.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  20.  * Boston, MA 02111-1307, USA.
  21.  */
  22.  
  23. #ifndef __GIMP_LIMITS_H__
  24. #define __GIMP_LIMITS_H__
  25.  
  26.  
  27. /*  pixel sizes
  28.  */
  29. #define GIMP_MIN_IMAGE_SIZE  1
  30. #define GIMP_MAX_IMAGE_SIZE  16777216  /*  2^24  */
  31.  
  32. /*  dots per inch
  33.  */
  34. #define GIMP_MIN_RESOLUTION  5e-3      /*  shouldn't display as 0.000  */
  35. #define GIMP_MAX_RESOLUTION  65536.0
  36.  
  37. /*  the size of the checks which indicate transparency...
  38.  */
  39. #define GIMP_CHECK_SIZE    8
  40. #define GIMP_CHECK_SIZE_SM 4
  41.  
  42. /*  ...and their colors
  43.  */
  44. #define GIMP_CHECK_DARK   0.4          /*  corresponds to GRAY_CHECKS as  */
  45. #define GIMP_CHECK_LIGHT  0.6          /*  defined in app/image_render.c  */
  46.  
  47.  
  48. #endif /* __GIMP_LIMITS_H__ */
  49.